﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="appllylistpage.aspx.cs" Inherits="tset4" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" content="C#">
    <meta name="vs_defaultClientScript" content="JavaScript">
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">

    <script language="javascript" src="lookup.js"></script>

    <script language="jscript">
		
		mainLoop = function()
		{
			val = escape(queryField.value);				
			if (lastVal != val)
			{				
				var response = tset4.GetSearchItems(val);
				showQueryDiv(response.value);
				lastVal = val;
			}				
			setTimeout('mainLoop()', 100);
			return true;
		}
    </script>

    <style type="text/css" media="all">
        @import "style.css";
    </style>
</head>
<body onload="javascript:InitQueryCode('search')" >
    <form id="form1" runat="server">
    <div class="barTopSpace">
    </div>
    <div class="bar">
    </div>
    <div >
        <table >
            
            <tr>
                <th colspan="5" scope="col" class="style7">
                    <asp:Label ID="Label6" runat="server" Font-Size="Large" Text="填写申请单"></asp:Label>
                </th>
            </tr>
            <tr>
                <td width="153" align="right">
                    <asp:Label ID="Label1" runat="server" Text="包名：" Font-Size="14px"></asp:Label>
                </td>
                <td width="154">
                    <%--   <asp:DropDownList ID="DDL1" runat="server" Height="22px" Width="130px" DataTextField="id">
                    </asp:DropDownList>--%>
                    <input name="search" type="text" id="search" autocomplete="off" runat="server">
                </td>
                <td width="152" align="right">
                    <asp:Label ID="Label2" runat="server" Text="常用包名：" Font-Size="14px"></asp:Label>
                </td>
                <td width="153">
                    <asp:DropDownList ID="DDL2" runat="server" Height="22px" Width="130px" 
                        DataTextField="package_id" Font-Size="14px">
                    </asp:DropDownList>
                </td>
                <td class="style6">
                    <asp:Button ID="btset" runat="server" Text="设定" Width="59px" 
                        OnClick="btset_Click" Font-Size="14px" />
                </td>
            </tr>
            <tr>
                <td colspan="5" class="style2">
                </td>
            </tr>
            <tr>
                <td colspan="1" align="right">
                    <asp:Label ID="Label3" runat="server" Text="数量：" Font-Size="14px"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txt1" runat="server" Width="150px" Font-Size="14px"></asp:TextBox>
                </td>
                <td align="right">
                    <asp:Label ID="Label4" runat="server" Text="说 明：" Font-Size="14px"></asp:Label>
                </td>
                <td colspan="2">
                    <asp:TextBox ID="txt2" runat="server" Width="217px" Font-Size="14px" 
                        ontextchanged="txt2_TextChanged"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="5">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="1" align="right">
                    <asp:Label ID="Label5" runat="server" Text="申请单号：" Font-Size="14px"></asp:Label>
                </td>
                <td colspan="2">
                    <asp:TextBox ID="txt3" runat="server" Width="250px" Font-Size="14px"></asp:TextBox>
                </td>
                <td colspan="2">
                    <asp:Button ID="btadd" runat="server" Text="添加上申请单" OnClick="btadd_Click" 
                        Font-Size="14px" />
                </td>
            </tr>
            <tr>
                <td colspan="5" class="style1">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="5" align="center" bgcolor="#996600">
                    <asp:Table ID="Table1" runat="server" Border="1">
                    </asp:Table>
                    <asp:Repeater ID="rtpPageAge" runat="server" 
                        onitemcommand="rtpPageAge_ItemCommand">
                    
                        <HeaderTemplate>
                            <table border="1">
                                <tr>
                                    <td width="80f">
                                        名称
                                    </td>
                                    <td width="80f">
                                        数量
                                    </td>
                                    <td width="80f">
                                        内容
                                    </td>
                                    <td width="80f">
                                        操作
                                    </td>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td width="80f">
                                    <%# Eval("Name") %>
                                </td>
                                <td width="80f">
                                    <%# Eval("Num") %>
                                </td>
                                <td width="80f">
                                    <%# Eval("Note") %>
                                </td>
                                <td width="80f">
                                    <a href='?action=del&id=<%# Eval("Id") %>'>删除</a>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table></FooterTemplate>
                    </asp:Repeater>
                </td>
            </tr>
            <tr>
                <td colspan="5" align="center">
                    <asp:Button ID="bton" runat="server" Text="提交申请单" OnClick="bton_Click" 
                        Font-Size="14px" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btoff" runat="server" Text="取消申请单" OnClick="btoff_Click" 
                        Font-Size="14px" />
                </td>
            </tr>
            <tr>
            <td colspan="5">
                <br />
                <br />
                </td></tr>
        </table>
    </div>
    </form>
</body>
</html>
